package com.ten_4_4.hiring.company.po;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Application Po
 *
 * @author Hsu.
 * @since 2016年1月20日
 */
public class ApplicationPo {

	private int id;
	private int positionId;
	private int talentId;
	private int resumeId;
	private int status;
	private Date appTime;
	private Date handleTime;

	// 扩展属性
	private String resume$intention;
	private String position$name;
	private String company$name;
	private String talent$name;

	// 临时传参
	private int companyId;
	private String appTimeStart;
	private String appTimeEnd;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPositionId() {
		return positionId;
	}

	public void setPositionId(int positionId) {
		this.positionId = positionId;
	}

	public int getTalentId() {
		return talentId;
	}

	public void setTalentId(int talentId) {
		this.talentId = talentId;
	}

	public int getResumeId() {
		return resumeId;
	}

	public void setResumeId(int resumeId) {
		this.resumeId = resumeId;
	}

	public int getStatus() {
		return status;
	}

	public String getStatusStr() {
		if (status == 1) {
			return "待审核";
		} else if (status == 2) {
			return "审核通过";
		} else if (status == 3) {
			return "已拒绝";
		} else {
			return "Unknow";
		}
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getAppTime() {
		return appTime;
	}
	public String getAppTimeStr() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(appTime);
	}

	public void setAppTime(Date appTime) {
		this.appTime = appTime;
	}

	public Date getHandleTime() {
		return handleTime;
	}
	public String getHandleTimeStr() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(handleTime);
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public String getResume$intention() {
		return resume$intention;
	}

	public void setResume$intention(String resume$intention) {
		this.resume$intention = resume$intention;
	}

	public String getPosition$name() {
		return position$name;
	}

	public void setPosition$name(String position$name) {
		this.position$name = position$name;
	}

	public String getCompany$name() {
		return company$name;
	}

	public void setCompany$name(String company$name) {
		this.company$name = company$name;
	}

	public String getTalent$name() {
		return talent$name;
	}

	public void setTalent$name(String talent$name) {
		this.talent$name = talent$name;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public String getAppTimeStart() {
		return appTimeStart;
	}

	public void setAppTimeStart(String appTimeStart) {
		this.appTimeStart = appTimeStart;
	}

	public String getAppTimeEnd() {
		return appTimeEnd;
	}

	public void setAppTimeEnd(String appTimeEnd) {
		this.appTimeEnd = appTimeEnd;
	}

}
